﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/MasterPages/Default.Master" CodeBehind="Login.aspx.vb" Inherits="GuildCMS.Account.Login" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../CSS/Account/Login.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="../Scripts/jquery.validate.min.js" type="text/javascript"></script>
    
    <!-- jQuery validate JavaScript. -->
    <script language="javascript" type="text/javascript">
        $(document).ready(function () {
            $("#form1").validate();
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <%-- Panel displaying the login form to the visitor. --%>
    <asp:Panel ID="panForm" runat="server">
    
        <!-- Login form -->

        <div class="formitemholder">
            <div class="formitemlabel"><asp:Label ID="lblLogin" runat="server" AssociatedControlID="txtLogin" Text="Login:"></asp:Label></div>
            <div class="formitemelement">
                <asp:TextBox ID="txtLogin" runat="server" CssClass="required" MaxLength="25"></asp:TextBox>
                <asp:CustomValidator ID="valLogin" runat="server"
                    Display="Dynamic"
                    ValidateEmptyText="true"
                    ControlToValidate="txtLogin"
                    ErrorMessage="The supplied login appears invalid."
                    OnServerValidate="valLogin_ServerValidate">
                </asp:CustomValidator>
            </div>
        </div>

        <div class="formitemholder">
            <div class="formitemlabel"><asp:Label ID="lblPassword" runat="server" AssociatedControlID="txtPassword" Text="Password:"></asp:Label></div>
            <div class="formitemelement">
                <asp:TextBox ID="txtPassword" TextMode="Password" runat="server" CssClass="required" MaxLength="32"></asp:TextBox>
                <asp:CustomValidator ID="valPassword" runat="server"
                    Display="Dynamic"
                    ValidateEmptyText="true"
                    ControlToValidate="txtPassword"
                    ErrorMessage="The supplied password appears invalid"
                    OnServerValidate="valPassword_ServerValidate">
                </asp:CustomValidator>
            </div>
        </div>

        <div class="formitemholder">
            <div class="formitemlabel"></div>
            <div class="formitemelement"><asp:CheckBox ID="chkRemeber" Text="Log me on automatically each visit" runat="server" /></div>
        </div>

        <div class="formitemholder">
            <div class="formitemlabel"></div>
            <div class="formitemelement"><asp:CheckBox ID="chkHide" Text="Hide my online status this session" runat="server" /></div>
        </div>

        <div class="formitemholder">
            <div class="formitemlabel"></div>
            <div class="formitemelement">
                <asp:Button ID="btnLogin" runat="server" Text="Login" />
            </div>
        </div>

        <!-- Options available to visitors if they are unable to login. -->

        <div class="formitemholder">
            <div class="formitemlabel"></div>
            <div class="formitemelement"><asp:HyperLink ID="lnkRegister" NavigateUrl="~/Account/Register.aspx" runat="server">Register a new account</asp:HyperLink></div>
        </div>

        <div class="formitemholder">
            <div class="formitemlabel"></div>
            <div class="formitemelement"><asp:HyperLink NavigateUrl="~/Account/Retrieve.aspx" ID="lnkForgot" runat="server">Retrieve login information</asp:HyperLink></div>
        </div>

        <div class="formitemholder">
            <div class="formitemlabel"></div>
            <div class="formitemelement"><asp:HyperLink NavigateUrl="~/Account/Resend.aspx" ID="lnkActivate" runat="server">Resend activation email</asp:HyperLink></div>
        </div>

    </asp:Panel>
</asp:Content>
